<template>
  <div class="">
    <iframe id="contentFrame" onload="onIframeLoad()"></iframe>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router";
import store from "@/store";
const oldSession = computed(() => store("user").oldSession);
if (!oldSession.value) {
  const $router = useRouter();
  $router.push({ name: "login" });
}
onMounted(() => {
  document.getElementById(
    "contentFrame"
  ).src = `http://b2.sjcmc.cn:16484/?sid=${oldSession.value}`;
  console.log("url", `http://b2.sjcmc.cn:16484/?sid=${oldSession.value}`);
});
const onIframeLoad = () => {};
</script>

<style scoped lang="scss">
iframe {
  width: 1200px;
  height: 800px; /* 增加足够的高度确保不遮挡内容 */
  border: none;
}
</style>
